<include file="App/Admin/View/Public/left.html"/>
  <script type="text/javascript" charset="utf-8" src="__PUBLIC__/kindeditor/kindeditor.js"></script>
  <script type="text/javascript" charset="utf-8" src="__PUBLIC__/kindeditor/lang/zh_CN.js"></script>
  <script type="text/javascript" charset="utf-8" src="__PUBLIC__/kindeditor/plugins/prettify.js"></script>
<div class="admin">
<div class="panel admin-panel margin-top" id="add">
  <div class="panel-head"><strong><span class="icon-pencil-square-o"></span>添加公司简介 </strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="{:U('About/add')}" enctype="multipart/form-data">  
        <div class="form-group">
        <div class="label">
          <label>图片：</label>
        </div>
        <div class="field"><span id="preview"></span><br><br>
      <a class="button input-file bg-blue margin-left" href="javascript:void(0);">+ 图片<input size="100" type="file" name="pic"  onchange="preview(this)"/></a>
        </div>
    </div>
        <div class="form-group">
        <div class="label">
          <label>文章内容：</label>
        </div>

                <div style="width:800px;margin-left: 170px">
            <!-- 加载编辑器的容器 -->
            <script id="editor" name="content" value='{$vo.content}' type="text/plain"></script>
            <!-- 配置文件 -->
            <script type="text/javascript" src="__PUBLIC__/UEditor/ueditor.config.js"></script>
            <script type="text/javascript" src="__PUBLIC__/UEditor/ueditor.all.min.js"></script>
            <!-- 编辑器源码文件 -->
            <script type="text/javascript" src="__PUBLIC__/UEditor/ueditor.all.js"></script>
            <!-- 实例化编辑器 -->
            <script type="text/javascript">

                var ue = UE.getEditor('editor',{
          //这里可以选择自己需要的工具按钮名称,此处仅选择如下五个  
          toolbars:[['fullscreen', 'source', '|', 'undo', 'redo', '|',
            'bold', 'italic', 'underline', 'fontborder', 'strikethrough',  'autotypeset', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
            'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
            'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|', 'indent', '|',
            'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
            'simpleupload', 'insertimage']],  

            initialContent:'{$vo.content}',
          //focus时自动清空初始化时的内容  
          autoClearinitialContent:false,  
          //关闭字数统计  
          wordCount:false,  
          //关闭elementPath  
          elementPathEnabled:false,  
          //默认的编辑区域高度  
          initialFrameHeight:300  
          //更多其他参数，请参考ueditor.config.js中的配置项  
          
        });
            </script>
        </div>
      </div> 

      <div class="form-group">
        <div class="label">
          <label>状态：</label>
        </div>
        <div class="field" style='line-height:30px;'>
      显示<input size="100" type="radio" name="status"  value='1' checked='checked'/>
      隐藏<input size="100" type="radio" name="status"  value='0'/>
        </div>
    </div>

  
    <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>
</div>
</div>
</body>
</html>
<script type="text/javascript">    
 function preview(file)  
 {  
 var prevDiv = document.getElementById('preview');  
 if (file.files && file.files[0])  
 {  
 var reader = new FileReader();  
 reader.onload = function(evt){  
 prevDiv.innerHTML = '<img src="' + evt.target.result + '" />';  
}    
 reader.readAsDataURL(file.files[0]);  
}  
 
 }function preview1(file)  
 {  
 var prevDiv = document.getElementById('preview1');  
 if (file.files && file.files[0])  
 {  
 var reader = new FileReader();  
 reader.onload = function(evt){  
 prevDiv.innerHTML = '<img src="' + evt.target.result + '" />';  
}    
 reader.readAsDataURL(file.files[0]);  
}  
 
 }
 </script>